
    @ApiOperation(value = "POSƬ", httpMethod = "POST")
    @RequestMapping(value = "/savePicture")
    public EditDataResult<String> savePicture(@RequestParam("uploadFile") MultipartFile file) {
    	EditDataResult<String> result = new EditDataResult<>();
    	if (!file.isEmpty()) {
    		try {
    			
    			String baseDir = servletContext.getRealPath("/");
    			java.io.File fileOne = new java.io.File(baseDir);
    			for (int i = 0; i < 6; i++) {
    				fileOne = fileOne.getParentFile();
    			}
    			String baseDirOne = fileOne.getAbsolutePath();
    			String uploadDir = baseDirOne + "/ims-mes/webapp/fileUpload/logo/mo/";
    			java.io.File dir = new java.io.File(uploadDir);
    			if (!dir.exists()) {
    				dir.mkdirs();
    			}
    			String fileName = file.getOriginalFilename();
    			String filePath = uploadDir + fileName;
    			file.transferTo(new java.io.File(filePath));
    			
    			result.setData(filePath);
    			result.setResultCode(PangusConstants.RESTULT_OK);
    		} catch (IOException e) {
    			result.setResultCode(PangusConstants.RESTULT_FAIL);
    			e.printStackTrace();
    		}
    	} else {
    		result.setResultCode(PangusConstants.RESTULT_FAIL);
    	}
    	return result;
    }
    
	
	
	